package com.plan
/**
 * The Employee entity.
 *
 * @author  michael.geng  mokesoft
 *
 *
 */
class Employee {
    static mapping = {
         table 'pm_employee'
         // version is set to false, because this isn't available by default for legacy databases
         version true
         id generator:'identity', column:'ID'
    }
    Long id
    String userName
    String name
    String depart
    String duty
    String subject
    String teams
    String workStatus
    String workContent
    String picPath
    String remark
    Long version
    Date dateCreated
    Date lastUpdated
    String str1
    String str2

    static constraints = {
        userName(size: 0..50)
        name(size: 0..50)
        depart(size: 0..50)
        duty(size: 0..50)
        subject(size: 0..50)
        teams(size: 0..50)
        workStatus(size: 0..50)
        workContent(size: 0..50)
        picPath(size: 0..100)
        dateCreated(nullable: true)
        lastUpdated(nullable: true)
        remark(size: 0..500)
        str2(nullable: true)
        str1(nullable: true)
    }
    String toString() {
        return "${id}" 
    }
}
